SET QUOTED_IDENTIFIER ON
GO
SET ANSI_NULLS ON
GO
-- =============================================
-- Author:		Paulo Fournier
-- Create date: 2013-01-27
-- Description:	Editar o nome da categora
-- =============================================
CREATE PROCEDURE ext.editCategoria
	-- Add the parameters for the stored procedure here
	@id_categoria INT, 
	@nome VARCHAR(50)
AS
BEGIN
	-- SET NOCOUNT ON added to prevent extra result sets from
	-- interfering with SELECT statements.
	SET NOCOUNT ON;

    -- Insert statements for procedure here
	UPDATE ext.categoria 
	SET nome = @nome 
	WHERE id_categoria = @id_categoria;
	
END
GO
